using MediatR;
using S.O.Domain.Dto.Output;
using S.O.ErrorCode;

namespace S.O.Api.Read.Application.Command.Medical
{
    /// <summary>
    /// 获取挂号记录列表命令
    /// 支持根据卡号进行条件查询
    /// </summary>
    public class GetRegistrationListCommand : IRequest<APIPaging<GetRegistrationListDto>>
    {
        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; } = 1;
        
        /// <summary>
        /// 页大小
        /// </summary>
        public int PageSize { get; set; } = 10;
        
        /// <summary>
        /// 卡号查询条件（可选）
        /// 如果为空则返回所有挂号记录
        /// </summary>
        public string? CardNo { get; set; }
    }
}